import Layout from '@/layout'
export const branchComs = [{
  path: '/login',
  meta:{
    // 页面标题title
    title: '登录'
},
  component: () => import('@/views/login/index'),
  hidden: true
},

{
  path: '/404',
  meta:{
    // 页面标题title
    title: '404'
},
  component: () => import('@/views/404'),
  hidden: true
},
{
  path: '/tjsk',
  meta:{
    // 页面标题title
    title: '添加收款'
},
hidden: true,//在侧边栏上显示  true为不显示  当父路由的字路由为1个时，不显示父路由，直接显示子路由
alwaysShow:false,
  component: () => import('@/views/shoukuanguanli/tjsk'),
 
},
{
  path: '/',
  component: Layout,
  redirect: '/homepage',
  children: [{
    path: 'homepage',
    name: '首页',
    component: () => import('@/views/homepage/index'),
    meta: {
      title: '安监行业运营管理系统',
      icon: 'dashboard'
    }
  }]
},

// 组织架构
{
  path: '/zuzhijiagou',
  component: Layout,
  name: '组织架构',
  meta: {
    title: '组织架构',
    icon: 'nested'
  },
  children: [
    {
      path: 'zuzhijiagou2',
      component: () => import('@/views/zuzhijiagou/index'),
      meta: {
        title: '部门管理'
      },
      children: [{
          path: 'departlist',
          component: () => import('@/views/zuzhijiagou/departlist'), // Parent router-view
          meta: {
            title: '部门列表'
          },
          name: '部门列表'
        },
        {
          path: 'departadd',
          component: () => import('@/views/zuzhijiagou/departadd'),
          meta: {
            title: '部门添加'
          },
          name: '部门添加'
        }
      ]
    }
  ]
},
// 人员管理
{
  path: '/people',
  component: Layout,
  name: '人员管理',
  meta: {
    title: '人员管理',
    icon: 'nested'
  },
  children: [{
      path: 'peoplelist',
      component: () => import('@/views/people/peoplelist'), // Parent router-view
      name: '人员列表',
      meta: {
        title: '人员列表'
      },

    },
    {
      path: 'addpeople',
      component: () => import('@/views/people/addpeople'),
      name: '添加人员',
      meta: {
        title: '添加人员'
      },

    }
  ]
},



// {
//   path: '/form',
//   component: Layout,
//   children: [{
//     path: 'index',
//     name: 'Form',
//     component: () => import('@/views/form/index'),
//     meta: {
//       title: 'Form',
//       icon: 'form'
//     }
//   }]
// },
{
  path: '/contract',
  component: Layout,
  name: '合同管理',
  meta: {
    title: '合同管理',
    icon: 'nested'
  },
  children: [{
      path: 'contractlist',
      component: () => import('@/views/contract/contractlist'), // Parent router-view
      name: '合同列表',
      meta: {
        title: '合同列表'
      },

    },
    {
      path: 'addcontrac',
      component: () => import('@/views/contract/addcontract'), // Parent router-view
      name: '添加合同',
      meta: {
        title: '添加合同'
      },

    },
  ]
},
{
  path: '/xiangmugunali',
  component: Layout,
  meta: {
    title: '项目管理',
    icon: 'nested'
  },
  children: [
    // {
    //   path: 'xiangmugunali-liebiao',
    //   component: () => import('@/views/xiangmuguanli/liebiao'),
    //   name: '项目列表',
    //   meta: {
    //     title: '项目列表'
    //   }
    // },
    // {
    //   path: 'xiangmugunali-tianjia',
    //   component: () => import('@/views/contract/addcontract'),
    //   name: '添加项目',
    //   meta: {
    //     title: '添加项目'
    //   }
    //},
    {
      path: 'xiangmugunali-progressManage',
      component: () => import('@/views/xiangmuguanli/progressManage'),
      name: '项目进度管理',
      meta: {
        title: '项目进度管理'
      }
    },
    {
      path: 'xiangmugunali-caozuo',
      component: () => import('@/views/xiangmuguanli/caozuo'),
      name: '项目操作汇总管理',
      meta: {
        title: '项目操作汇总管理'
      }
    },

    {
      path: 'xiangmugunali-taskbook',
      component: () => import('@/views/xiangmuguanli/taskbook'),
      name: '项目任务书',
      hidden: true, 
      meta: {
        title: '项目任务书'
      }
    },
      {
        path: 'firstDraft',
        component: () => import('@/views/xiangmuguanli/firstDraft'),
        name: '项目初稿',
        hidden: true, //在侧边栏上显示  true为不显示  当父路由的字路由为1个时，不显示父路由，直接显示子路由
        alwaysShow: false, //默认是false   设置为true时会忽略设置的权限 一致显示在跟路由上
        meta: {
          title: '项目初稿'
        }
      },
      {
        path: 'firstCheck',
        component: () => import('@/views/xiangmuguanli/firstCheck'),
        name: '项目一审',
        hidden: true, //在侧边栏上显示  true为不显示  当父路由的字路由为1个时，不显示父路由，直接显示子路由
        alwaysShow: false, //默认是false   设置为true时会忽略设置的权限 一致显示在跟路由上
        meta: {
          title: '项目一审'
        }
      },
      {
        path: 'secondCheck',
        component: () => import('@/views/xiangmuguanli/secondCheck'),
        name: '项目二审',
        hidden: true, //在侧边栏上显示  true为不显示  当父路由的字路由为1个时，不显示父路由，直接显示子路由
        alwaysShow: false, //默认是false   设置为true时会忽略设置的权限 一致显示在跟路由上
        meta: {
          title: '项目二审'
        }
      },
      {
        path: 'endDraft',
        component: () => import('@/views/xiangmuguanli/endDraft'),
        name: '项目终稿',
        hidden: true, //在侧边栏上显示  true为不显示  当父路由的字路由为1个时，不显示父路由，直接显示子路由
        alwaysShow: false, //默认是false   设置为true时会忽略设置的权限 一致显示在跟路由上
        meta: {
          title: '项目终稿'
        }
      },
      {
        path: 'finish',
        component: () => import('@/views/xiangmuguanli/finish'),
        name: '项目完成',
        hidden: true, //在侧边栏上显示  true为不显示  当父路由的字路由为1个时，不显示父路由，直接显示子路由
        alwaysShow: false,
        meta: {
          title: '项目完成'
        }
      },
    ]
  },
  {
    path: '/massadmin',
    component: Layout,
    name: '质量管理',
    meta: {
      title: '质量管理',
      icon: 'nested'
    },
    children: [{
        path: 'accessAdmin',
        component: () => import('@/views/massadmin/accessAdmin/accessAdmin'), // Parent router-view
        name: '评价报告汇总管理',
        meta: {
          title: '评价报告汇总管理'
        },
      },
      {
        path: 'accessReport',
        component: () => import('@/views/massadmin/accessReport/accessReport'),
        name: '评价报告编制操作管理',
        meta: {
          title: '评价报告编制操作管理'
        }, 

      },
    ]
  },
{
  path: '/jixiaokaohe',
  component: Layout,
  name: '绩效管理',
  meta: {
    title: '绩效管理',
    icon: 'nested'
  },
  children: [
    {
      path: 'jxkh',
      component: () => import('@/views/jixiaokaohe/jxkh'), // Parent router-view
      name: '绩效考核管理',
      meta: {
        title: '绩效考核管理'
      },

    },
    {
      path: 'jygl',
      component: () => import('@/views/jixiaokaohe/jygl'), // Parent router-view
      name: '经营管理汇总',
      meta: {
        title: '经营管理汇总'
      },

    },
    {
      path: 'rygl',
      component: () => import('@/views/jixiaokaohe/rygl'), // Parent router-view
      name: '管理人员分类汇总',
      meta: {
        title: '管理人员分类汇总'
      },

    },
  ]
},
// {
//   path: '/shoukuanguanli',
//   component: Layout,
//   name: '收款管理',
//   meta: {
//     title: '收款管理',
//     icon: 'nested'
//   },
//   children: [{
//       path: 'tjsk',
//       component: () => import('@/views/shoukuanguanli/tjsk'), // Parent router-view
//       name: '添加收款记录',
//       meta: {
//         title: '添加收款记录'
//       },

//     },
  
//   ]
// },
{
  path: '/nologin',
  component: () => import('@/views/nologin/nologin'), 
  name: '免登录',
  hidden:false,
  meta: {
    title: '免登录',
    icon: 'nested'
  },
},
// 404 page must be placed at the end !!!
{
  path: '*',
  redirect: '/404',
  hidden: true
}
]